﻿using Nasty.Core.Entity;
using SqlSugar;

namespace Nasty.Core.Entity.System
{
    [SugarTable("SysUserRole", TableDescription = "用户角色")]

    public class UserRole
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "UserId", ColumnDescription = "用户Id")]
        public string? UserId { get; set; }

        /// <summary>
        /// 角色Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "RoleId", ColumnDescription = "角色Id")]
        public string? RoleId { get; set; }
    }
}
